import request from '@/utils/request'

// 查询围栏主体信息列表
export function listfenceInfo(query) {
  return request({
    url: '/business/fenceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询围栏主体信息详细
export function getfenceInfo(id) {
  return request({
    url: '/business/fenceInfo/' + id,
    method: 'get'
  })
}

// 新增围栏主体信息
export function addfenceInfo(data) {
  return request({
    url: '/business/fenceInfo',
    method: 'post',
    data: data
  })
}

// 修改围栏主体信息
export function updatefenceInfo(data) {
  return request({
    url: '/business/fenceInfo',
    method: 'put',
    data: data
  })
}

// 删除围栏主体信息
export function delfenceInfo(id) {
  return request({
    url: '/business/fenceInfo/' + id,
    method: 'delete'
  })
}

// 导出围栏主体信息
export function exportfenceInfo(query) {
  return request({
    url: '/business/fenceInfo/export',
    method: 'get',
    params: query
  })
}